/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gitee.fdc.base.service;

import java.util.List;
import com.gitee.fdc.base.entity.TreeEntity;
import com.gitee.fdc.web.ztree.ZTreeNode;
import java.io.Serializable;

/**
 *
 * @author qskj
 * @param <T>
 * @param <ID>
 */
public interface BaseTreeService<T extends TreeEntity, ID extends Serializable> extends DeleteLogicService<T,ID> {

    public List<T> findByParentIdIncludeParent(ID pid);

    public List<T> findByParentIdExcludeParent(ID pid);

    public List<ZTreeNode> presetTreeDataChecked(List<T> source, List<T> checked);

    public List<ZTreeNode> convertTreeNodes(List<T> source);
}
